package com.test.springboot.service.impl;

import com.test.springboot.domain.User;
import com.test.springboot.mapper.UserMapper;
import com.test.springboot.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
//@Component
public class UserServiceImpl implements UserService {
	
	@Resource
	private UserMapper userMapper;
	
	@Override
	public User login(User user) {
		return userMapper.login(user);
	}
	
	@Override
	public User getUser(Integer id) {
		return userMapper.getUser(id);
	}
}
